﻿using Entity.CheckInEntity;
using Entity.Customer;
using Entity.Front_Desk;
using Entity.Room;
using Microsoft.EntityFrameworkCore;

namespace Entity
{
    /// <summary>
    /// 数据库上下文类
    /// </summary>
    public class HotelDbContext : DbContext
    {
        public HotelDbContext(DbContextOptions<HotelDbContext> options) : base(options)
        {
                
        }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<CustomerInfo> CustomerInfo { get; set; }
        /// <summary>
        /// 房间种类
        /// </summary>
        public DbSet<RoomType> RoomType { get; set; }
        /// <summary>
        /// 房间信息
        /// </summary>
        public DbSet<RoomInfo> RoomInfo { get; set; }
        /// <summary>
        /// 预约信息
        /// </summary>
        public DbSet<Appointment> Appointment { get; set; }
        /// <summary>
        /// 入住信息
        /// </summary>
        public DbSet<CheckIn> CheckIn { get; set; } 
        /// <summary>
        /// 菜单
        /// </summary>
        public DbSet<MenuInfo> MenuInfo { get; set; }
        /// <summary>
        /// 前台员工
        /// </summary>
        public DbSet<FrontDesk> FrontDesk { get; set; }
        /// <summary>
        /// 员工菜单
        /// </summary>
        public DbSet<Role_Menu> Role_Menu { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public DbSet<Role> Role { get; set; }
        /// <summary>
        /// 员工角色
        /// </summary>
        public DbSet<EmployeeRole> EmployeeRole { get; set; }
        
    }
}
